package com.myprocessing.box.button.group;

import com.myprocessing.action.Action;
import com.myprocessing.box.button.Button;

public class GroupButton extends Button {

	protected GroupButtonManager groupButtonManager;
	protected Action altButtonClick;
	

	public void onMousePress() {
		groupButtonExec();
		if(isValidMouseOver()){
			groupButtonManager.onMousePress(this);
		}
	}
	
	protected void groupButtonExec(){
		super.onMousePress();
	}

	public Action getAltButtonClick() {
		return altButtonClick;
	}

	public void setAltButtonClick(Action altButtonClick) {
		this.altButtonClick = altButtonClick;
	}

	public GroupButtonManager getGroupButtonManager() {
		return groupButtonManager;
	}

	public void setGroupButtonManager(GroupButtonManager groupButtonManager) {
		this.groupButtonManager = groupButtonManager;
	}
}
